package com.ruoyi.hazard.domain.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel("隐患信息返回对象")
public class HazardInfoDto extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Long id;
    @ApiModelProperty(value = "隐患名称")
    private String name;

    @ApiModelProperty(value = "数据所属监狱")
    private Long deptId;
    @ApiModelProperty(value = "监狱名称")
    private String deptName;

    @ApiModelProperty(value = "内设机构")
    private String subDept;

    @ApiModelProperty(value = "隐患类别（关联字典hazard_type）")
    private String type;

    @ApiModelProperty(value = "隐患等级（关联字典hazard_level）")
    private String level;

    @ApiModelProperty(value = "监管等级（关联字典supervise_level）")
    private String superviseLevel;

    @ApiModelProperty(value = "隐患详细描述")
    private String description;

    @ApiModelProperty(value = "整改说明")
    private String remark;

    @ApiModelProperty(value = "文档附件信息集合（文件URL列表）")
    private String attachmentsDocument;

    @ApiModelProperty(value = "图片附件信息集合（图片URL列表）")
    private String attachmentsImage;
    @ApiModelProperty(value = "整改文档附件信息集合（文件URL列表）")
    private String attachmentsDocument2;

    @ApiModelProperty(value = "整改图片附件信息集合（图片URL列表）")
    private String attachmentsImage2;

//    @ApiModelProperty(value = "流转状态（new-新建, auditing-审核中, approved-审核通过, rejected-审核不通过）")
//    private String status = "new";

    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "整改限期")
    private Date deadline;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "检查日期")
    private Date checkDate;
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "整改完成日期")
    private Date finishDate;
    @ApiModelProperty(value = "隐患地点")
    private String location;
//    @ApiModelProperty(value = "是否启用督办")
//    private Boolean enableSupervise;

//    @ApiModelProperty(value = "督办状态")
//    private Boolean supervised;
    @ApiModelProperty(value = "整改状态")
    private Boolean finished;


    //    @ApiModelProperty(value = "是否挂起（0-未挂起, 1-已挂起）")
//    private Boolean hangup;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "修改人")
    private String updateBy;

    @ApiModelProperty(value = "删除标记")
    private String delFlag;

//    @ApiModelProperty(value = "隐患跟踪信息集合")
//    private List<HazardTrackInfoVo> hazardTracks;
}
